#include <iostream>
#include <fstream>
#include <list>

using namespace std;

#include "./URL.h";


URL::URL(string dominio_l, string path_l, string protocol_l)
:path(path_l),
 dominio(dominio_l),
 protocol(protocol_l)
{
	depth = 0;
	for (int i =0; i<path.size(); i++)
		if (path[i] == '/')
			depth++;
}

string URL::get_dominio() const{
	return dominio;
}

string URL::get_path() const{
	return path;
}

string URL::get_protocol() const{
	return protocol;
}